package com.hjm.friend.domain.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hjm.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@TableName("tb_message")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Message extends BaseEntity {
    
	@TableId(value = "MESSAGE_ID", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
	private Long messageId;

	@JsonSerialize(using = ToStringSerializer.class)
	private Long textId;

	private Long sendId;    // 发送人id

	private Long recId;    // 接收人id

}